{any_include file="scp_page_start.tpl" wide=1}

<!-- $Id$ -->

<h1>OAuth - Delete Key To Other Site</h1>

{any_include file="scp_oauth_menu.tpl"}

<p>
	This website uses keys to access third party applications and websites.<br/>
	Third parties refuse access without a valid key.
</p>

{if $error}
<p class="error">
	Can not delete the server key.  Either it does not exist or you don't have the permission to delete it.
</p>

<p>
	<a href="{$rel_path}module/OAuth/consumer/list" class="button">
		Cancel
	</a>
</p>

{else}
<p class="error">
	Do you want to delete the key to the site at: {$server.server_uri|trim|default:"Unknown"|escape}?
	<br/>
{if $token_ct}
	This key is used by {$token_ct} application{if $token_ct>1}s{/if} on this website.
{else}
	This key is not used by any applications.
{/if}
</p>

<form method="post" action="{$rel_path}module/OAuth/consumer/delete">
<input type="hidden" name="consumer_key"  value="{$server.consumer_key|escape}" />
<input type="hidden" name="confirm"       value="1" />
<p>
	<button type="submit" class="negative">
		Delete
	</button>
	
	<a href="{$rel_path}module/OAuth/consumer/list" class="button">
		Cancel
	</a>
</p>
	
</form>

{/if}

{any_include file="scp_page_end.tpl" wide=1}
